/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * <p></p>
 * <p>Powered by webrx On 2023-03-24 15:13:04</p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Demo {
    public static void main(String[] args) {
        String t = "2023-03-09T15:09";
        LocalDateTime birth = LocalDateTime.parse(t, DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm"));


        LocalDateTime n = LocalDateTime.now();
        System.out.println(birth.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")));

        System.out.println(System.currentTimeMillis());

        String tt = "1985年12月15日";
        LocalDate dd = LocalDate.parse(tt, DateTimeFormatter.ofPattern("yyyy年MM月dd日"));
        System.out.println(dd);
    }
}
